import Vue from '@src/common/entry'
import http from '@src/util/http'
import nodeWrap from './components/workflow/components/nodeWrap.vue'
Vue.component('nodeWrap', nodeWrap); //初始化组件
import addNode from './components/workflow/components/addNode.vue'
Vue.component('addNode', addNode); //初始化组件

import ConnectorSettingView from '@src/modules/connector/view/setting'
import { t } from '@src/locales'
Vue.prototype.$http = http
Vue.prototype.$eventBus = new Vue()

let app

if (process.env.NODE_ENV != 'production') {
  Vue.prototype.$t = t
  app = new Vue({
    el: '#app',
    components: {
      ConnectorSettingView
    },
    render: h => h(ConnectorSettingView)
  })

} else {
  app = ConnectorSettingView
}

export default app
